package com.gjy.disruptor.longevent;

import com.lmax.disruptor.EventTranslator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-04-02 12:29:21
 */
public class LongEventTranslator implements EventTranslator<LongEvent> {

    private static final Logger log = LoggerFactory.getLogger(LongEventTranslator.class);

    @Override
    public void translateTo(LongEvent event, long l) {
        event.set(l);
        log.info("{},{}", event, l);
    }
}
